#rm -rf ./node_modules
#npm install --registry=https://registry.npm.taobao.org
#npm run build

#vercel部署
vercel dist
#EOF结束符实现简单自动化交互
<< EOF 
Y
EOF

#expect实现自动化交互（没效果！）

#Link to existing project -- yes
expect {
  "*Set up and deploy*" {
     send "y \n"
     exp_continue
   }
  "*Which scope do you want to deploy to*" {
     send "\n"
     exp_continue
   }
  "*Link to existing project*" {
     send "y \n"
     exp_continue
   }
  "*What’s the name of your existing project*" {
     send "poster-creator \n"
     exp_continue
   }
}


#Link to existing project -- no
expect {
  "*Set up and deploy*" {
     send "y \n"
     exp_continue
   }
  "*Which scope do you want to deploy to*" {
     send "\n"
     exp_continue
   }
  "*Link to existing project*" {
     send "n \n"
     exp_continue
   }
  "*What’s your project’s name*" {
     send "x-poster \n"
     exp_continue
   }
  "*In which directory is your code located*" {
     send "\n"
     exp_continue
   }
  "*Want to override the settings*" {
     send "n \n"
     exp_continue
   }
}